<?php
/*
Plugin Name: jQuery Lightbox
Plugin URI: http://blog.etiv.cn/2008/01/wordpress-plugin-jQuery.lightbox.ETiV
Description: Display images with the <em>Lightbox</em> effect. Based on <cite><a href="http://leandrovieira.com/projects/jquery/lightbox/" title="jQuery Lightbox Plugin 0.4">Lightbox Plugin for jQuery</a>.</cite>
Version: 0.4
Author: ETiV
Author URI: http://blog.etiv.cn
*/

function LightBox_Codes() {
	$LightBox_Path = get_option('siteurl') . '/wp-content/plugins/jQuery.lightbox/';
?>
	<!--/ jQuery LightBox /-->
	<script type="text/javascript"> LBox_path = "<?php echo $LightBox_Path ; ?>"; </script>
	<link rel="stylesheet" href="<?php echo $LightBox_Path ; ?>jquery.lightbox.css" type="text/css" media="screen" />
	<script type="text/javascript" src="<?php echo $LightBox_Path ; ?>jquery.js"></script>
	<script type="text/javascript">var $jLB = jQuery.noConflict();</script>
	<script type="text/javascript" src="<?php echo $LightBox_Path ; ?>jquery.lightbox.js"></script>
	<script type="text/javascript">$jLB(function(){$jLB('a[rel*=lightbox]').lightBox();});</script>
	<!--/ jQuery LightBox /-->
<?php
}

add_action('wp_head', 'LightBox_Codes');
?>